package com.kgc.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.kgc.pojo.Provider;
import com.kgc.service.ProviderService;

@Controller
@RequestMapping("/pro")
public class ProviderController
{
    @Resource
    ProviderService providerService;
    
    @RequestMapping("listPro.do")
    public String listPro(Model model,Provider pro)
    {
        model.addAttribute("providerList", providerService.listProvider(pro));
        return "providerlist";
    }
    
}
